﻿using Ducu.BLL.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.BLL.NHMap
{
    class PlanMap : EntityMap<Plan>
    {
        public PlanMap()
        {
            Map(m => m.Description).Length(Constant.Length_Limitless);
            Map(m => m.Expire);
            Map(m => m.DaysOfLeave);
            Map(m => m.From).Column("PlanFrom");
            Map(m => m.FulfilWeekdays);
            Component(m => m.Proof);
            HasManyToMany(m => m.KeyWords);
            Map(m => m.MaxNumberOfSupervisors);
            HasManyToMany(m => m.Supervisors);
            Map(m => m.Title);
            Map(m => m.To).Column("PlanTo");
            References(m => m.Vower);
        }
    }
}
